package cglgu.trellis.chado.das2.ant.db;

/*
 * $Id: AntMysqlDbUtil.java 191 2011-03-27 00:38:22Z sundaram.georgetown@gmail.com $
 * $Author: sundaram.georgetown@gmail.com $
 * $Date: 2011-03-27 00:38:22 +0000 (Sun, 27 Mar 2011) $
 * $Rev: 191 $
 * $HeadURL: http://genomancer.googlecode.com/svn/branches/gu-dev-branch/tengcha/src/cglgu/trellis/chado/das2/ant/db/AntMysqlDbUtil.java $
 */

import cglgu.trellis.chado.das2.ant.db.AntDbUtil;

/* Encapsulates logic for:

   organism: ant
   schema: chado
   database vendor: mysql

   Implements Singleton pattern.
 */

public class AntMysqlDbUtil extends AntDbUtil {

	private String dbUriRoot = "jdbc:/mysql//";
	private static AntMysqlDbUtil instance = null;

	protected AntMysqlDbUtil(String username, String password, String database, String host, boolean useMultiQry){
		super(username, password, database, host, useMultiQry);
	}

	public static AntMysqlDbUtil getInstance(String username, String password, String database, String host, boolean useMultiQry){

		if (instance == null){
			instance = new AntMysqlDbUtil(username, password, database, host, useMultiQry);
		}
		return instance;
	}

	public String getDbUriRoot(){
		return dbUriRoot;
	}
}